﻿@model Windshield.Models.LoginModel

@{
	ViewBag.Title = "Log in";
}

<h2>Log in
</h2>

<hr>

@using (Html.BeginForm())
{
	<form class="form-horizontal">

		<p>
			Please enter your user name and password. @Html.ActionLink("Register", "Register") if you don't have an account.
		</p>

		@Html.Partial("_ValidationSummaryPartial", ViewData.ModelState)
		<div class="control-group">
			<div class="control-label">
				@Html.LabelFor(m => m.UserName)
			</div>
			<div class="controls">
				@Html.TextBoxFor(m => m.UserName)
			</div>
			<div class="control-label">
				@Html.LabelFor(m => m.Password)
			</div>
			<div class="controls">
				@Html.PasswordFor(m => m.Password)
			</div>
		</div>
		<div class="control-group">
			<div class="controls">
				<label class="checkbox">
					@Html.CheckBoxFor(m => m.RememberMe)
					Remember Me?
				</label>
			</div>
			<input type="submit" class="btn" value="Log in" />
			<input type="reset" class="btn" value="Clear" />
		</div>
	</form>
}

@section Scripts {
	@Scripts.Render("~/bundles/jqueryval")
}